{if $nav_kolvo}
<div class="mir_per_page">

{if $nav_links.prev != '-1'}
<span class="per_page_ctrl"><a href="?from={$nav_links.prev}{if $nav_links.qstring}{$nav_links.qstring}{/if}" id="prev_link">&larr; ctrl</a></span>
{else}
<span class="dis">&larr; ctrl</span>
{/if}
{if $nav_links.first != '-1'}
	<a href="?from={$nav_links.first}{if $nav_links.qstring}{$nav_links.qstring}{/if}" class="per_page_navigation_pages" >&hellip;</a>
{/if}

{if $nav_kolvo}
{foreach item="k" from=$nav_pages }
	{if $now==$k}
		<span class="per_page_navigation" >{$k+1}</span>
	{else}
		<a href="?from={$k}{if $nav_links.qstring}{$nav_links.qstring}{/if}" class="per_page_navigation_pages" >{$k+1}</a>
	{/if}
{/foreach}
{/if}

{if $nav_links.last != '-1'}
<a href="?from={$nav_links.last}{if $nav_links.qstring}{$nav_links.qstring}{/if}" class="per_page_navigation_pages" >&hellip;</a>
{/if}

{if $nav_links.next != '-1'}
<span class="per_page_ctrl"><a href="?from={$nav_links.next}{if $nav_links.qstring}{$nav_links.qstring}{/if}"  id="next_link">ctrl &rarr;</a></span>
{else}
<span class="dis">ctrl &rarr;</span>
{/if}
<br />

</div>
{/if}